package com.smile.api;

import com.smile.commons.Result;
import com.smile.commons.page.R;
import com.smile.model.request.ExecuteAirlineTaskRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "smile-plus-standalone-device", contextId = "airlineDevice", path = "/api/device")
public interface AirlineDeviceApi {
    @PostMapping("/airline/executeAirlineTask")
    R<Result> executeAirlineTask(@RequestBody ExecuteAirlineTaskRequest executeAirlineTaskRequest) throws Exception;

    @PostMapping("/airline/stopTask")
    R<Result> stopTask(@RequestBody ExecuteAirlineTaskRequest executeAirlineTaskRequest) throws Exception;
}
